/**  
 * Project Name:SpringBootDemo  
 * File Name:SampleController.java  
 * Package Name:com.asiainfo.springbootdemo  
 * Date:2017年8月31日上午9:36:47  
 * Copyright (c) 2017, chenzhou1025@126.com All Rights Reserved.  
 *  
*/  
  
package com.asiainfo.springbootdemo;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**  
 * ClassName:SampleController <br/>  
 * Function: TODO ADD FUNCTION. <br/>  
 * Reason:   TODO ADD REASON. <br/>  
 * Date:     2017年8月31日 上午9:36:47 <br/>  
 * @author   Administrator  
 * @version    
 * @since    JDK 1.6  
 * @see        
 */
@Controller
@SpringBootApplication
public class SampleController
{
    @ResponseBody
    @RequestMapping(value="/")
    String home()
    {
        return "hello word!";
    }
    
    public static void main(String[] args)
    {
        SpringApplication.run(SampleController.class, "--server.port=8081");
    }
}
  
